import request from "@/router/axios";

export const getList2 = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/gauge/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getProjectgaugerelation = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/projectgaugerelation/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const getProjectgaugerelationList = (current, size, params) => {
  return request({
    url: "/api/blade-measure/measure/projectgaugerelation/list",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const saveProjectgaugerelation = params => {
  return request({
    url: "/api/blade-measure/measure/projectgaugerelation/savebatch",
    method: "post",
    data: {
      ...params
    }
  });
};

export const updateProjectgaugerelation = params => {
  return request({
    url: "/api/blade-measure/measure/projectgaugerelation/update",
    method: "post",
    data: {
      ...params
    }
  });
};

export const deleteProjectgaugerelation = params => {
  return request({
    url: "/api/blade-measure/measure/projectgaugerelation/remove",
    method: "post",
    params: {
      ...params
    }
  });
};
